<?php include_once("../../../common/common_setting_unit.php");         // 引入通用的设置文件 ?>
<?php include_once(ROOT_PATH_ . "/controller/common/module/head.php"); // 引入通用的头部 ?>
<?php include_once("../controller/data_add.php");                     // 当前页面的控制器 ?>



<body>

<!--顶部栏-->
<div id="topbar"> <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?></div>

<!--容器-->
<div id="container" class="<? echo $now_extender ?>">


<!--侧边栏-->
<div id="sidebar"><?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?></div>





    <?
    //==============================================================================
    //这里开始才是平常开发需要注重的部分，其余的基本不用理会
    //==============================================================================
    ?>

    <div id="content">

            <!--标题设定-->
            <?php $page_title='添加';?>
            <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>







           <div class="detail-box">


               <ul class="detail-boxing">
                   <form id="data_form" method="post" class="layui-form"
                         action ="data_add_process.php?<? echo $data['url_parameter'] ?>"
                         enctype="multipart/form-data">


                           <input type="hidden"  name="nid" value="<? echo $data['nid']?>" >

                           <fieldset class="layui-elem-field layui-field-title" >
                               <legend>基本信息</legend>
                           </fieldset>

                           <blockquote class="layui-elem-quote">基本信息多数是对外使用的资料，请细心填写。</blockquote>
                           <br/>


                           <!--普通的input文本输入-->
                           <li class="layui-form-item name">
                               <label class="layui-form-label">客服名称：</label>
                               <div class="layui-input-block">
                                   <input type="text" class="layui-input"  name="ai_name"  value="<? echo $data['name'] ?>">
                                   <em class="notice">(填写客服名称)</em>
                               </div>
                           </li>



                           <li class="account"><label class="layui-form-label">客服帐号：</label>
                               <div class="layui-input-block">
                                   <input type="text" class="layui-input" name="ai_recommend"  value="<? echo $data['recommend'] ?>">
                                   <em class="notice">(填写客服名称)</em>
                               </div>

                           </li>


                           <li class="type"><label class="layui-form-label">客服类型：</label>
                               <div class="layui-input-block">

                                   <? foreach ($service_type_list as $key=>$value)
                                       {?>
                                           <input name="ai_type" type="radio" value="<?echo $value?>" title="<?echo $value?>" checked/>
                                   <?}?>
                                   <div class="notice">客服类型可以在<a href="setting.php?sys_part=service" target="_parent">【板块设置】</a>中设置</div>

                               </div>
                           </li>






                           <!--普通的textarea多行文本输入-->
                           <li class="layui-form-item introduce">
                               <label class="layui-form-label">简介：</label>
                               <div class="layui-input-block">
                                   <textarea class="layui-textarea" name="ai_introduce"  ><?echo  $data['introduce']?></textarea>
                                   <em class="notice">(填写本文的概述)</em>
                               </div>
                           </li>



                           <li>
                               <label class="layui-form-label">电子邮箱：</label>
                               <div class="layui-input-block">
                                   <input type="text" class="layui-input" name="ai_email" size="20" value="<? echo $data['email'] ?>"></div>
                           </li>


                           <li>
                               <label class="layui-form-label">联系电话：</label>
                               <div class="layui-input-block">
                                   <input type="text" class="layui-input" name="ai_phone" size="20" value="<? echo $data['phone'] ?>"></div>
                           </li>





                           <li class="listorder">
                               <label class="layui-form-label">列表排序：</label>
                               <div class="layui-input-block">
                                   <input type="text" class="layui-input" name="ai_listorder" size="20"
                                          value="0"
                                          lay-verify="number">
                                   <em class="notice">(填写本客服在前台显示的列表排序，数字越大，排序越靠前)</em>

                               </div>
                           </li>



                           <!--单选项-->
                           <li class="layui-form-item publish">
                               <label class="layui-form-label">发布状态：</label>
                               <div class="layui-input-block">
                                   <input name='ai_publish' type='radio' value='1' title="立即发布"
                                       <? if ($data['publish'] == '1') {echo "checked='checked'";} ?>/>
                                   <input name='ai_publish' type='radio' value='0' title="暂未发布"
                                       <? if ($data['publish'] != '1') {echo "checked='checked'";} ?>/>
                               </div>
                           </li>







                           <div class="function">

                               <button class="layui-btn"  lay-submit type="submit" >立即提交</button>
                               <input type="reset" class="layui-btn" value="重置"/>
                           </div>



                       </form>



               </ul>
           </div>
        </div>



        <?
        //==============================================================================
        //这里上面才是平常开发需要注重的部分，下面的基本不用理会，只有底部JS部分需要根据实际情况去加载
        //==============================================================================
        ?>



            </div>
            <!--detail-box end-->


</div>
<!--content端點01-->
<?
//==============================================================================
//这里上面才是平常开发需要注重的部分，下面的基本不用理会，只有底部JS部分需要根据实际情况去加载
//==============================================================================
?>





<br class="clearfloat"/>
<!--container-->
</div>




<!--底部栏-->
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>


</body>
</html>
